package com.daka.enumerate;

/**
 * @author beliveli on 2016/5/12
 */
@SuppressWarnings("unused")
public enum StatusCode {

    OK(0, "请求成功"),

    SERVER_EXCEPTION(1, "服务器通用异常"),

    COMMON_UPLOAD_FILE(2,"文件上传异常"),
    COMMON_CALL_LIMITED(3,"调用次数超限"),
    COMMON_HTTP_ACTION(4,"http请求异常"),
    COMMON_INSUFFICIENT_PERMISSIONS(5,"权限不足"),
    COMMON_INVALID_FORMAT(6,"无效数据格式"),
    COMMON_MISS_SIGN(7,"缺少签名参数"),
    COMMON_INVALID_SIGN(8,"错误的签名参数"),
    COMMON_MISS_CUSTOMER(9,"缺少合作伙伴代码"),
    COMMON_INVALID_CUSTOMER(10,"错误的合作伙伴代码"),
    COMMON_MISS_TIMESTAMP(11,"缺少时间戳参数"),
    COMMON_INVALID_TIMESTAMP(12,"错误的时间戳参数"),
    COMMON_MISS_VERSION(13,"缺少版本参数"),
    COMMON_INVALID_VERSION(14,"错误的版本参数"),
    COMMON_PARAM_ERROR(15,"参数错误"),
    COMMON_INVALID_TOKEN(16,"无效的TOKEN"),
    COMMON_USER_NOT_LOGIN(17,"用户未登录"),
    COMMON_VERIFIER_CODE_ERROR(18,"手机验证码不正确"),
    COMMON_FORMAT_ERROR(19,"格式转换失败"),
    COMMON_SMS_SEND_ERROR(20,"短信发送失败"),
    COMMON_AREA_ERROR(21,"区域获取异常"),
    COMMON_REDIS_ERROR(22,"REDIS服务异常"),
    COMMON_MOBILE_ERROR(23,"手机号位数不正确"),
    COMMON_MOBILE_EXITS(24,"手机号已经存在"),

    USER_NOT_EXISTS(10001,"用户不存在"),
    USER_EXISTS(10002,"用户已存在"),
    USER_INFO_NOT_FULL(10003,"请完善个人资料"),
    USER_IS_FROST(10004,"用户已被冻结"),
    USER_SAVE_ERROR(10005,"用户创建失败"),
    USER_IDCARD_EXISTS(10006,"身份证信息已存在"),
    USER_PASSWORD_ERROR(10007,"账号密码错误"),


    PRICE_NOT_MAX(10008,"您的出价必须高于当前最高价格"),
    AUCTION_TIME_OUT(10009,"拍卖已结束"),



    ;

    private int code;
    private String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
